<!-- TITLES -->
<?php
/*-----------------------------------------------------------------------------------*/  
/*------------------	        Blog Page title                        --------------*/
/*-----------------------------------------------------------------------------------*/


get_template_part( 'inc/banner' );

if(is_home() || is_singular('post') || is_search())
{
	?>
	<div id="banner-wrapper">
			<div class="title-container">
					<?php
					if( function_exists( 'ot_get_option' ))
					{								
						?>
						<h1 class="page-title"><?php echo ot_get_option('blog_title'); ?></h1>
						<p class="sub-heading"><?php echo ot_get_option('blog_sub_title'); ?></p>
						<?php
					}											
					?>							
			</div>
	</div>	
	<?php
}
/*-----------------------------------------------------------------------------------*/  
/*------------------	        Property Detail Title:                   --------------*/
/*-----------------------------------------------------------------------------------*/
else if(is_singular('property'))
{
	?>
	<div id="banner-wrapper">
			<div class="title-container">
					<h1 class="page-title"><?php _e('Property Detail', 'locality') ?></h1>				
			</div>
	</div>	
	<?php
}
/*-----------------------------------------------------------------------------------*/  
/*------------------	        Pate Titles:                        --------------*/
/*-----------------------------------------------------------------------------------*/
else if(is_page())
{
	?>
	<div id="banner-wrapper">
			<div class="title-container">
					<h1 class="page-title"><?php wp_title("",true); ?></h1>
					<p class="sub-heading">
						<?php
						$porperty_status = get_post_meta($post->ID, 'locality_page_subtitle', true);
						
						if(!empty($porperty_status))
						{
							echo $porperty_status;		   
						}
						?>
					</p>
			</div> 
	</div>
	<?php
}
else
{
	?>
	<div id="banner-wrapper">
			<div class="title-container">
					<h1 class="page-title"><?php wp_title("",true); ?></h1>
		   </div>
   </div>
   <?php
}  
